<?php
$accounts = getAccounts($_SESSION["userid"], true);
?>
			<div id="textcontainer">
				<h2>Számlák</h2>
				<p>
<?php
if ($accounts !== false)
{
	print "<table border=\"1\">";
	foreach ($accounts as $account)
	{
		print "<tr>";
		print "<td><h3>" . $account["name"] . "</h3>" . (($account["type"] == "B")?"<div>" . $account["accountnumber"] . "</div>":"") . "</td>";
		print "<td>" . $account["balance"] . "</td>";
		print "</tr>";
		if (strlen($account["description"]) > 0) print "<tr><td colspan=\"2\"><i>" . $account["description"] . "</i></td></tr>";
	}
	print "</table>";
}
else
{
	print "nincsenek számlák";
}
?>
				</p>
			</div>
			<!---->
